import request from '@/utils/request.js'

export const getOrderList = (status) => {
  return request.get('/order/getOrderList', {
    params: {
      status
    }
  })
}

export const confirmReceipt = (orderId) => {
  return request.get('/order/confirmreceipt', {
    params: {
      orderId
    }
  })
}

export const cancelOrder = (orderId) => {
  return request.get('/order/cancelOrder', {
    params: { orderId }
  })
}
